package com.lzy.concertticket.threadlocal;

import com.lzy.concertticket.model.entity.UserEntity;

public class UserEntityThreadLocal {
    private static final ThreadLocal<UserEntity> t = new ThreadLocal<>();
    public static void set(UserEntity userEntity) {
        t.set(userEntity);
    }
    public static UserEntity get() {
        return t.get();
    }
    public static void remove() {
        t.remove();
    }
}
